import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/components/layout'

Vue.use(VueRouter)

const routes = [
    {
        path: '/redirect',
        component: Layout,
        hidden: true,
        children: [
            {
                path: '/redirect/:path(.*)',
                component: () => import('@/views/redirect/index')
            }
        ]
    },
    {
        path: '/',
        component: () => import('@/views/index')
        // redirect: '/water-quality-analysis/index',
        // component: Layout,
        // children: [
        //     {
        //         path: 'index',
        //         component: () => import('@/views/index'),
        //         name: 'water-quality-analysis'
        //     }
        // ]

    },
]
const router = new VueRouter({
  mode: "history",
  routes
})

export default router